package com.RedRiver.hospitalsystem.record_service.infra.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_serial")
public class Serial implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 挂号id
     */
    @TableId(value = "serial_id", type = IdType.AUTO)
    private Integer serialId;

    /**
     * 号时间
     */
    private LocalDateTime serialDate;

    /**
     * 号数
     */
    private String serialNumber;

    /**
     * 价格
     */
    private BigDecimal serialPrice;

    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 部门id
     */
    private Integer departmentId;

    /**
     * 证件号
     */
    private String serialCard;

    /**
     * 证件类别编号
     */
    private Integer papersId;

    /**
     * 状态（0.未使用,1.已使用）
     */
    private Integer serialState;

    /**
     * 就诊时间
     */
    private LocalDateTime treatmentTime;

    /**
     * 接诊类型(0.初诊，1.复诊)
     */
    private Integer serialType;

    /**
     * 逻辑删除
     */
    @TableField("isDeleted")
    @TableLogic
    private Integer isDeleted;


}
